Page({

    data: {

    },

    onLoad: function(options) {

        var paytext = '';
        this.setData({
          atype: options.atype,//判断租赁还是便民
          success: options.success
        })
    },

    //查看订单
    onSeeOrder: function(e) {
      if(this.data.atype=='1'){
        wx.redirectTo({
          url: '/pages/order/zulin',
        })
      }else if(this.data.atype=='2'){
        wx.redirectTo({
          url: '/pages/order/bianmin',
        })
      }
     
    },

    //返回首页
    onGoHome: function(e) {
        wx.switchTab({
            url: '/pages/index/index',
        })
    }

})